#ifndef _UNIT_IPACCOUNT_H
#define _UNIT_IPACCOUNT_H

#ifdef _CPPUNIT_TEST

#include "Unit_Common.h"
#include "IPAccount.h"

class CUnit_IPAccount : public CppUnit::TestFixture
{
    CPPUNIT_TEST_SUITE(CUnit_IPAccount);
    CPPUNIT_TEST(Test_IPAccount_Add);
    CPPUNIT_TEST(Test_IPAccount_Count);
    CPPUNIT_TEST(Test_IPAccount_LastConnectCount);
    CPPUNIT_TEST(Test_IPAccount_GetInfo);
    CPPUNIT_TEST(Test_CConnectAccount);
    CPPUNIT_TEST_SUITE_END();

public:
    CUnit_IPAccount();

    virtual ~CUnit_IPAccount();

    CUnit_IPAccount(const CUnit_IPAccount& ar);

    CUnit_IPAccount& operator = (const CUnit_IPAccount& ar)
    {
        if (this != &ar)
        {
            ACE_UNUSED_ARG(ar);
        }

        return *this;
    }

    virtual void setUp(void);

    virtual void tearDown(void);

    void Test_IPAccount_Add(void);

    void Test_IPAccount_Count(void);

    void Test_IPAccount_LastConnectCount(void);

    void Test_IPAccount_GetInfo(void);

    void Test_CConnectAccount(void);

private:
    CIPAccount* m_pIPAccount;
};

#endif

#endif
